package io.renren.common.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @Description
 * @Author haijun.zhang@luckincoffee.com
 * @Date 2018-08-11 15:33
 **/
public class IntegerUtils {
    /**
     * 判断字符串是否为数字
     */
    public static boolean isNumeric(String str){
        Pattern pattern = Pattern.compile("[0-9]*");
        Matcher isNum = pattern.matcher(str);
        return isNum.matches();
    }
    
    public static void main(String [] args){
        System.out.println(isNumeric("12323A"));
    }

}
